package com.hopu.v1.service.front.question;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hopu.v1.pojo.question.QuestionsComments;
import com.hopu.v1.vo.CommentVo;

import java.util.List;

/**
* @author admin
* @description 针对表【t_questions_comments(题目评论表)】的数据库操作Service
* @createDate 2024-10-09 15:28:33
*/
public interface QuestionsCommentsService extends IService<QuestionsComments> {


    /**
     * 根据学生id获取
     * @param studentId
     * @return
     */
    IPage<CommentVo> getQuestionCommentByStudentId(Page<QuestionsComments> page, String studentId);


    /**
     * 根据题目的id查看所有的评论
     * @param questionId
     * @return
     */
    List<CommentVo> getCommentContentByQuestionId(String studentId,String questionId);
}
